import Vue from 'vue'
import Router from 'vue-router'
import app_index from '@/components/app_index'
import local_index from '@/components/local_index'
import settlement_index from '@/components/settlement_index'
import news_index from '@/components/news_index'
import support_index from '@/components/finsupport/support_index'
import inspection_index from '@/components/inspection/inspection_index'
import gallery_index from '@/components/gallery/gallery_index'
import original_text from '@/components/gallery/index/original_text'

import my_index from '@/components/my_index'
// import message_index from '@/components/message_index'
import InApplication from '@/components/enter/InApplication'
import strategy_index from '@/components/strategy/strategy_index'

import Construction from '@/components/building/Construction'
import ShopDetails from '@/components/building/ShopDetails'
import ShopTongcheng from '@/components/building/ShopTongcheng'
import Introduction from '@/components/building/Introduction'
import fuwu from '@/components/building/fuwu'
import shanchang from '@/components/building/shanchang'
import DecorateACase from '@/components/building/DecorateACase'
import CaseDetails from '@/components/building/CaseDetails'
import PaymentDetails from '@/components/building/paymentDetails' //施工队付款界面
import DecorationProcess from '@/components/process/DecorationProcess'
import shigongdui from '@/components/building/shigongdui'
import PaymentDetailsTwo from '@/components/building/PaymentDetailsTwo'
import vr from '@/components/strategy/vr'
import vrtiaozhuan from '@/components/strategy/vrtiaozhuan'
import tupian from '@/components/strategy/tupian'
import strategy_shipin from '@/components/strategy/strategy_shipin'

// 我的
import my_vouchers from '@/components/my/my_vouchers'
import terraceTel from '@/components/my/terrace_tel'
import my_security from '@/components/my/my_security'
import guan_yu from '@/components/my/guan_yu'
import my_address from '@/components/my/my_address'
import address_edit from '@/components/my/address/address_edit'
// 设置
import SetUp from '@/components/my/SetUp'
// 个人资料
import PersonalData from '@/components/my/person/PersonalData'
// 个人资料
import QRCode from '@/components/my/person/QRCode'
// 账户安全
import AccountSecurity from '@/components/my/person/AccountSecurity'

import mainMaterial_index from '@/components/mainMaterial/mainMaterial_index'
import material_category from '@/components/material/material_category'
import buildingMaterial_index from '@/components/buildingMaterial/buildingMaterial_index'
import category_details from '@/components/material/category_details'
import commodity_details from '@/components/material/commodity_details'
import shop_home from '@/components/material/shop_home'
// 订单详情
import OrderDetails from '@/components/material/OrderDetails'
//购物车详情
import shoppingCartDetails from '@/components/material/shoppingCartDetails'
// 支付页
import MaterialPay from '@/components/payOrder/MaterialPay'
import ShigongMateial from '@/components/payOrder/ShigongMateial'
// 一次拼团
import AlOneMatePay from '@/components/cluster/AlOneMatePay'
// 二次拼团
import AlTwoMatePay from '@/components/cluster/AlTwoMatePay'
//购物车支付页
import shoppingPay from '@/components/payOrder/shoppingPay'

// 购物车
import ShoppingCart from '@/components/mymine/ShoppingCart'
// 售后
import AfterSale from '@/components/mymine/AfterSale'
import ApplySale from '@/components/mymine/ApplySale'
// 申请售后
import ReturnRefund from '@/components/mymine/ReturnRefund'
import ExchangeGoods from '@/components/mymine/ExchangeGoods'
// 订单
import AllOrder from '@/components/mymine/AllOrder'
// 发布
import Release from '@/components/mymine/Release'
//评价
import EvaluateOrder from '@/components/mymine/EvaluateOrder'
//我的评价
import MyComment from '@/components/mymine/MyComment'
//我的发布页面
import MyRelease from '@/components/mymine/MyRelease'

import ShezhiMima from '@/components/my/ShezhiMima.vue'
//我的收益页面
import Incomedetails from '@/components/mymine/Incomedetails'
//提现页面
import Cash from '@/components/mymine/Cash'
// 相关登录
import login_index from '@/components/login/login_index'
import password_login from '@/components/login/password_login'
import verification_code from '@/components/login/verification_code'
import set_password from '@/components/login/set_password'
import retrieve_password from '@/components/login/retrieve_password'
import retrieve_code from '@/components/login/retrieve_code'
import reset_password from '@/components/login/reset_password'
import xiazai from '@/components/login/xiazai'


import strategy_details from '@/components/strategy/strategy_details'

import citywide_details from '@/components/citywide/citywide_details'
import citywide_index from '@/components/citywide/citywide_index'

import news_comments from '@/components/news/news_comments'
import news_praise from '@/components/news/news_praise'

import LeaseIndex from '@/components/lease/LeaseIndex'
import lease_category from '@/components/lease/lease_category'
import RentalDetails from '@/components/lease/RentalDetails'
import ceshi from '@/components/building/ceshi'

import MyFavorite from '@/components/mymine/MyFavorite'
//拼团页面
import Cluster from '@/components/cluster/Cluster'
import ClusterList from '@/components/cluster/ClusterList'
import orderdetils from '@/components/cluster/orderdetils'
import Alone from '@/components/cluster/Alone'
import Altwo from '@/components/cluster/Altwo'
//发布案例
import FaStrategy from "@/components/strategy/FaStrategy";


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      // name: 'app_index',
      // component: app_index
      name: 'index',
      component: () => import('@/views/Index.vue'),
      meta:{
        keepAlive:true
      },
    },
    {
      path: '/local_index',
      name: 'local_index',
      component: local_index
    },
    {
      path: '/settlement_index',
      name: 'settlement_index',
      component: settlement_index
    },
    {
      path: '/news_index',
      name: 'news_index',
      component: news_index
    },
{
      path: '/tupian',
      name: 'tupian',
      component: tupian
    },
{
      path: '/strategy_shipin',
      name: 'strategy_shipin',
      component: strategy_shipin
    },

    {
      path: '/vr',
      name: 'vr',
      component: vr
    },
{
      path: '/vrtiaozhuan',
      name: 'vrtiaozhuan',
      component: vrtiaozhuan
    },

{
      path: '/FaStrategy',
      name: 'FaStrategy',
      component: FaStrategy
    },


    {
      path: '/my_index',
      name: 'my_index',
      component: my_index
    },
    {
      path: '/news_praise',
      name: 'news_praise',
      component: news_praise
    },
    {
      path: '/InApplication',
      name: 'InApplication',
      component: InApplication


    },
    {
      path: '/Construction',
      name: 'Construction',
      component: Construction,
      meta:{
        keepAlive:true
      },
    },
    {
      path: '/terraceTel',
      name: 'terraceTel',
      component: terraceTel
    },
    {
      path: '/PaymentDetails',
      name: 'PaymentDetails',
      component: PaymentDetails
    },
    {
      path: '/ShopDetails',
      name: 'ShopDetails',
      component: ShopDetails
    },

    {
      path: '/ShopTongcheng',
      name: 'ShopTongcheng',
      component: ShopTongcheng
    },


    {
      path: '/Introduction',
      name: 'Introduction',
      component: Introduction
    },

    {
      path: '/fuwu',
      name: 'fuwu',
      component: fuwu
    },

    {
      path: '/shanchang',
      name: 'shanchang',
      component: shanchang
    },


    {
      path: '/support_index',
      name: 'support_index',
      component: support_index
    },
    {
      path: '/inspection_index',
      name: 'inspection_index',
      component: inspection_index
    },
    {
      path: '/gallery_index',
      name: 'gallery_index',
      component: gallery_index
    },
    {
      path: '/strategy_index',
      name: 'strategy_index',
      component: strategy_index
    },
    {
      path: '/original_text',
      name: 'original_text',
      component: original_text
    },
    {
      path: '/strategy_details',
      name: 'strategy_details',
      component: strategy_details
    },
    {
      path: '/citywide_details',
      name: 'citywide_details',
      component: citywide_details
    },
    {
      path: '/DecorateACase',
      name: 'DecorateACase',
      component: DecorateACase
    },
    {
      path: '/CaseDetails',
      name: 'CaseDetails',
      component: CaseDetails
    },
    {
      path: '/DecorationProcess',
      name: 'DecorationProcess',
      component: DecorationProcess,
      meta:{
        keepAlive:true
      },
    },
    {
      path: '/shigongdui',
      name: 'shigongdui',
      component: shigongdui
    },

{
      path: '/PaymentDetailsTwo',
      name: 'PaymentDetailsTwo',
      component: PaymentDetailsTwo
    },


    {
      path: '/original_text',
      name: 'original_text',
      component: original_text
    },
    {
      path: '/strategy_index',
      name: 'strategy_index',
      component: strategy_index
    },
    {
      path: '/mainMaterial_index',
      name: 'mainMaterial_index',
      component: mainMaterial_index
    },
    {
      path: '/material_category',
      name: 'material_category',
      component: material_category
    },
    {
      path: '/buildingMaterial_index',
      name: 'buildingMaterial_index',
      component: buildingMaterial_index
    },
    {
      path: '/category_details',
      name: 'category_details',
      component: category_details
    },
  {
    path: '/QRCode',
    name: 'QRCode',
    component: QRCode
  },
    {
      path: '/citywide_index',
      name: 'citywide_index',
      component: citywide_index
    },
    {
      path: '/login_index',
      name: 'login_index',
      component: login_index
    },
    {
      path: '/password_login',
      name: 'password_login',
      component: password_login
    },
    {
      path: '/verification_code',
      name: 'verification_code',
      component: verification_code
    },
    {
      path: '/set_password',
      name: 'set_password',
      component: set_password
    },

    {
      path: '/xiazai',
      name: 'xiazai',
      component: xiazai
    },


    {
      path: '/retrieve_password',
      name: 'retrieve_password',
      component: retrieve_password
    },
    {
      path: '/retrieve_code',
      name: 'retrieve_code',
      component: retrieve_code
    },
    {
      path: '/reset_password',
      name: 'reset_password',
      component: reset_password
    },
    {
      path: '/MyFavorite',
      name: 'MyFavorite',
      component: MyFavorite
    },


    {
      path: '/commodity_details',
      name: 'commodity_details',
      component: commodity_details
    },
    {
      path: '/shop_home',
      name: 'shop_home',
      component: shop_home
    },
    {
      path: '/OrderDetails',
      name: 'OrderDetails',
      component: OrderDetails
    },
  {
    path: '/shoppingCartDetails',
    name: 'shoppingCartDetails',
    component: shoppingCartDetails
  },
    {
      path: '/MaterialPay',
      name: 'MaterialPay',
      component: MaterialPay
    },

    {
      path: '/ShigongMateial',
      name: 'ShigongMateial',
      component: ShigongMateial
    },


  {
      path: '/AlOneMatePay',
      name: 'AlOneMatePay',
      component: AlOneMatePay
    },
    {
      path: '/AlTwoMatePay',
      name: 'AlTwoMatePay',
      component: AlTwoMatePay
    },
    {
      path: '/shoppingPay',
      name: 'shoppingPay',
      component: shoppingPay
    },

    {
      path: '/ShoppingCart',
      name: 'ShoppingCart',
      component: ShoppingCart
    },
    {
      path: '/AfterSale',
      name: 'AfterSale',
      component: AfterSale
    },
    {
      path: '/ApplySale',
      name: 'ApplySale',
      component: ApplySale
    },
    {
      path: '/ReturnRefund',
      name: 'ReturnRefund',
      component: ReturnRefund
    },
    {
      path: '/ExchangeGoods',
      name: 'ExchangeGoods',
      component: ExchangeGoods
    },
    {
      path: '/AllOrder',
      name: 'AllOrder',
      component: AllOrder
    },

    {
      path: '/news_comments',
      name: 'news_comments',
      component: news_comments
    },
    {
      path: '/my_security',
      name: 'my_security',
      component: my_security
    },
    {
      path: '/guan_yu',
      name: 'guan_yu',
      component: guan_yu
    },


    {
      path: '/my_address',
      name: 'my_address',
      component: my_address
    },
    {
      path: '/my_vouchers',
      name: 'my_vouchers',
      component: my_vouchers
    },
    {
      path: '/address_edit',
      name: 'address_edit',
      component: address_edit
    },
    {
      path: '/SetUp',
      name: 'SetUp',
      component: SetUp
    },
    {
      path: '/PersonalData',
      name: 'PersonalData',
      component: PersonalData
    },
    {
      path: '/AccountSecurity',
      name: 'AccountSecurity',
      component: AccountSecurity
    },
    {
      path: '/ceshi',
      name: 'ceshi',
      component: ceshi
    },
    {
      path: '/LeaseIndex',
      name: 'LeaseIndex',
      component: LeaseIndex
    },

     {
      path: '/lease_category',
      name: 'lease_category',
      component: lease_category
    },


    {
      path: '/RentalDetails',
      name: 'RentalDetails',
      component: RentalDetails
    },
    {
      path: '/Cluster',
      name: 'Cluster',
      component: Cluster
    },
    {
      path: '/ClusterList',
      name: 'ClusterList',
      component: ClusterList
    },
    {
      path: '/orderdetils',
      name: 'orderdetils',
      component: orderdetils
    },
    {
      path: '/Alone',
      name: 'Alone',
      component: Alone
    },
    {
      path: '/Altwo',
      name: 'Altwo',
      component: Altwo
    },
    {
      path: '/Release',
      name: 'Release',
      component: Release
    },
    {
      path: '/MyRelease',
      name: 'MyRelease',
      component: MyRelease
    },
    {
      path: '/EvaluateOrder',
      name: 'EvaluateOrder',
      component: EvaluateOrder
    },
    {
      path: '/MyComment',
      name: 'MyComment',
      component: MyComment
    },
    {
      path: '/ShezhiMima',
      name: 'ShezhiMima',
      component: ShezhiMima
    },
    {
      path: '/Incomedetails',
      name: 'Incomedetails',
      component: Incomedetails
    },
    {
      path: '/Cash',
      name: 'Cash',
      component: Cash
    },

  ]
})
